package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author : Jungle
 * @Description :  2级分类vo
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {
    /**
     * catalog1Id : 1
     * catalog3List : [{"catalog2Id":"1","id":"1","name":"电子书"},{"catalog2Id":"1","id":"2","name":"网络原创"},{"catalog2Id":"1","id":"3","name":"数字杂志"},{"catalog2Id":"1","id":"4","name":"多媒体图书"}]
     * id : 1
     * name : 电子书刊
     */


    /**
     * 一级父分类
     */
    private String catalog1Id;
    /**
     * 三级子分类
     */
    private List<Catelog3Vo> catalog3List;
    private String id;
    private String name;

    /**
     * 三级分类vo
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo {
        /**
         * catalog2Id : 1
         * id : 1
         * name : 电子书
         */

        /**
         * 二级父分类
         */
        private String catalog2Id;
        private String id;
        private String name;
    }
}
